import Vue from 'vue'
import App from './App'
import { $http } from '@escook/request-miniprogram'

wx.$http = $http
uni.$http = $http
Vue.config.productionTip = false

App.mpType = 'app'
// 发请求之前
$http.beforeRequest = function (options) {
  uni.showLoading({
  	title:'加载中'
  })
}
//请求成功之后
$http.beforeRequest = function (options) {
	uni.hideLoading()
}
// 挂载url根路径
$http.baseUrl = 'https://www.uinav.com'

const app = new Vue({
	...App
})
app.$mount()
